using System;
using System.Collections.Generic;
using System.Text;

namespace Ent.Voice.Nomination
{
    public enum FileType { Image, Audio, Video, Links, Text }
    public class File
    {
        public int Id;
        public FileType Type;
        public int Width;
        public int Height;
        public string Location;
        public string Text;
        public static FileType GetFileType(string type)
        {
            switch (type.ToLower())
            { 
                case "image":
                    return FileType.Image;
                case "audio":
                    return FileType.Audio;
                case "video":
                    return FileType.Video;
                case "links":
                    return FileType.Links;
                case "text":
                default:
                    return FileType.Text;
            }
        }
    }
}
